﻿@model EpiInfoCloudMagpiBridge.Models.EwavUser

@{
    ViewBag.Title = "Login";
}

<div style="border:1px solid #787878; background-color: #eaeaea; width: 400px; padding:0px; margin-top:20px">
    <div style="background-color: #787878; margin-top:-20px">
    
        <div style="padding-bottom:1px; padding-top:0px; padding-left:5px;color: #eaeaea"><h2>Login</h2></div>
    
    </div>

    @*<div>@Model.Id </div>
        <div>@Model.Password </div>*@

    @using (Html.BeginForm("Authenticate", "Login", FormMethod.Post, Model))
    {
    <!-- form goes here -->
    <div style="padding:20px;">
        <table>
            <tr><td colspan="3">@{if (Model.valid == false) {<span style="font-size:13px; color: #ff0000">Email or password you entered is incorrect. Please retry.</span> } } </td></tr>
            <tr><td colspan="3" height="20"></td></tr>
            <tr>
                <td>Email:</td>
                <td width="20"></td>
                <td ><span class="form-control">@Html.TextBoxFor(m => m.Id, new { Id = "txtUserName" }) </span></td>
            </tr>
            <tr height="20">
                <td></td>
                <td width="20"></td>
                <td></td>
            </tr>
            <tr>
                <td>Password:</td>
                <td width="20"></td>
                <td><span class="form-control">@Html.PasswordFor(m => m.Password )</span></td>  <!-- , new { Id = "txtPassword" }    -->    
            </tr>
            <tr height="20">
                <td></td>
                <td width="20"></td>
                <td></td>
            </tr>
            <tr><td><button class="btn btn-primary" submit="submit">Login</button></td> </tr>
          
        </table>
    </div>
        @*<span>@(4 * 5)  </span>*@

    }
  
</div>


